package com.share.risk.third

import com.alibaba.fastjson.JSONPath

public static String parseJson(String result) {
    Integer code = (Integer) JSONPath.read(result, '$.result.error_code');
    if (0 == code) {
        return '1';
    } else {
        return '0';
    }
}